package com.djf.eg.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.djf.eg.dao.EmployeeDao;
import com.djf.eg.entity.Employee;

@Service
public class EmployeeService {
	
	@Autowired
	EmployeeDao employeeDao;
	
	public List<Employee> getEmployees() {
		return employeeDao.getEmployees();		
	}
	
	public int addEmployee(Employee employee) {
		return employeeDao.addEmployee(employee);
	}
	
	public int updateEmployee(Employee employee) {
		return employeeDao.updateEmployee(employee);
	}
	
	public int deleteEmployee(int id) {
		return employeeDao.deleteEmployee(id);
	}
}
